#include<stdio.h>
 int main(){
 	int x;
 	double sum=0;
 	int cnt=0;
 	int number[100];
 	scanf("%d",&x);  
 	while(x!=-1){
 		number[cnt]=x;
 	/* 	{
 			int i;
 			printf("%d\t",cnt);
 			for(i=0;i<cnt;i++){
 				printf("%d\t",number[i]);
 			}
 			printf("\n");
 		}*/
 		
 		
 		
 		sum=sum+x;
 		cnt ++;
 		scanf("%d",&x);
 	
 		
 	}
 	if(cnt>0){
 		printf("%lf\n",sum/cnt);
 		int i;
 		double  average;
 		average=sum/cnt;
 		for(i=0;i<cnt;i++){
 			if(number[i]>average){
 				printf("%d ",number[i]);
 			}
 		}
 	}
 	
 	
 	
 	
 	return 0;
 }
